package com.school.information.dto;

import com.school.information.entity.SysUserEntity;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class UserDTO {
    @Valid
    private SysUserEntity sysUser;

    @NotNull(message = "用户角色不能为空")
    private List<Long> roleIds;
}
